﻿using System;

namespace YawetagLib.Data
{
    public struct DataContextToken
    {
        internal static DataContextToken New(Type type, Guid identifier)
        {
            return new DataContextToken { Type = type, Identifier = identifier };
        }

        internal static DataContextToken New(Type type)
        {
            return new DataContextToken { Type = type };
        }

        public Type Type { get; private set; }

        public Guid Identifier { get; private set; }
    }
}
